package cn.iune.erp.setting;

import javax.persistence.*;

import com.justep.baas.data.RowState;


/**
 * The persistent class for the systembilltype database table.
 * 
 */
@Entity
@Table(name="BillSettingOrg",uniqueConstraints={@UniqueConstraint(columnNames={"billType","enterpriseNo"}),@UniqueConstraint(columnNames={"preChar","enterpriseNo"})})
@NamedQuery(name="BillSettingOrg.findAll", query="SELECT s FROM BillSettingOrg s")
public class BillSettingOrg {
	
	@Id
	@Column(length=32)
	private String fID;
	
	@Column(length=4)
	private String billType;
	@Column(length=20)
	private String billTypeName;	
	/*
	 * 1:入库
	 * 2:销货
	 * 3:领用
	 * 4:调拨
	 * 5:调整
	 */
	private int dealType = 0;
	
	@Column(length=2)
	private String preChar;
	@Column(length=2)
	private String codeType;
	@Column(length=10)
	private String codeTypeLabel;
	private int codeCount;
	@Column(length=1)
	private String autoCode;
	@Column(length=2)
	private String autoCodeLabel;
	private int direction;
	@Column(length=4)
	private String directionLabel;
	@Column(length=1)
	private String costingCode;
	@Column(length=10)
	private String costingCodeLabel;
	@Column(length=1)
	private String revOpay;
	@Column(length=4)
	private String revOpayLabel;
	@Column(length=4)
	private String origin;
	@Column(length=20)
	private String originName;
	private int flowType;
	@Column(length=20)
	private String flowTypeLabel;
	
	@Column(length=32)
	private String fMasterID;
	
	@Column(length=1,columnDefinition="VARCHAR(1) default 'N' COMMENT '单据日志'")
	private String billLog;//Y,N(default)
	
	
	
	
	@Column(length=32)
	private String appId;//在服务器中注册的应用ID
	@Column(length=256)
	private String appName;//在服务器中注册的应用名称
	
	
	@Column(length=128)
	private String enterpriseNo;
	@Column(length=128)
	private String enterpriseName;
	
	@Column(length=36)
	private String userId;

	@Version
	private int version;
	
	@Transient//非持久字段
	private RowState rowState;
	public RowState getRowState() {
		return rowState;
	}
	public void setRowState(RowState rowState) {
		this.rowState = rowState;
	}

	public String getfID() {
		return this.fID;
	}

	public void setfID(String fID) {
		this.fID = fID;
	}

	public String getAutoCode() {
		return this.autoCode;
	}

	public void setAutoCode(String autoCode) {
		this.autoCode = autoCode;
	}

	public String getAutoCodeLabel() {
		return this.autoCodeLabel;
	}

	public void setAutoCodeLabel(String autoCodeLabel) {
		this.autoCodeLabel = autoCodeLabel;
	}

	public int getCodeCount() {
		return this.codeCount;
	}

	public void setCodeCount(int codeCount) {
		this.codeCount = codeCount;
	}

	public String getCodeType() {
		return this.codeType;
	}

	public void setCodeType(String codeType) {
		this.codeType = codeType;
	}

	public String getCodeTypeLabel() {
		return this.codeTypeLabel;
	}

	public void setCodeTypeLabel(String codeTypeLabel) {
		this.codeTypeLabel = codeTypeLabel;
	}

	public String getCostingCode() {
		return this.costingCode;
	}

	public void setCostingCode(String costingCode) {
		this.costingCode = costingCode;
	}

	public String getCostingCodeLabel() {
		return this.costingCodeLabel;
	}

	public void setCostingCodeLabel(String costingCodeLabel) {
		this.costingCodeLabel = costingCodeLabel;
	}

	public int getDirection() {
		return this.direction;
	}

	public void setDirection(int direction) {
		this.direction = direction;
	}

	public String getDirectionLabel() {
		return this.directionLabel;
	}

	public void setDirectionLabel(String directionLabel) {
		this.directionLabel = directionLabel;
	}

	public String getEnterpriseName() {
		return this.enterpriseName;
	}

	public void setEnterpriseName(String enterpriseName) {
		this.enterpriseName = enterpriseName;
	}

	public String getEnterpriseNo() {
		return this.enterpriseNo;
	}

	public void setEnterpriseNo(String enterpriseNo) {
		this.enterpriseNo = enterpriseNo;
	}

	public int getFlowType() {
		return this.flowType;
	}

	public void setFlowType(int flowType) {
		this.flowType = flowType;
	}

	public String getFlowTypeLabel() {
		return this.flowTypeLabel;
	}

	public void setFlowTypeLabel(String flowTypeLabel) {
		this.flowTypeLabel = flowTypeLabel;
	}


	public String getOrigin() {
		return this.origin;
	}

	public void setOrigin(String origin) {
		this.origin = origin;
	}

	public String getOriginName() {
		return this.originName;
	}

	public void setOriginName(String originName) {
		this.originName = originName;
	}

	public String getPreChar() {
		return this.preChar;
	}

	public void setPreChar(String preChar) {
		this.preChar = preChar;
	}

	public String getRevOpay() {
		return this.revOpay;
	}

	public void setRevOpay(String revOpay) {
		this.revOpay = revOpay;
	}

	public String getRevOpayLabel() {
		return this.revOpayLabel;
	}

	public void setRevOpayLabel(String revOpayLabel) {
		this.revOpayLabel = revOpayLabel;
	}


	public int getVersion() {
		return this.version;
	}

	public void setVersion(int version) {
		this.version = version;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getBillType() {
		return billType;
	}
	public void setBillType(String billType) {
		this.billType = billType;
	}
	public String getBillTypeName() {
		return billTypeName;
	}
	public void setBillTypeName(String billTypeName) {
		this.billTypeName = billTypeName;
	}
	public String getBillLog() {
		return billLog;
	}
	public void setBillLog(String billLog) {
		this.billLog = billLog;
	}
	public String getAppId() {
		return appId;
	}
	public void setAppId(String appId) {
		this.appId = appId;
	}
	public String getAppName() {
		return appName;
	}
	public void setAppName(String appName) {
		this.appName = appName;
	}
	public String getfMasterID() {
		return fMasterID;
	}
	public void setfMasterID(String fMasterID) {
		this.fMasterID = fMasterID;
	}
	public int getDealType() {
		return dealType;
	}
	public void setDealType(int dealType) {
		this.dealType = dealType;
	}

}